package com.gjm.product.controller;

import com.gjm.product.dao.objectdata.ProductInfo;
import com.gjm.product.service.ProductService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/product")
@RestController
public class ProductController {

    @Resource(name = "productServiceImpl")
    private ProductService productService;

    @RequestMapping("/getProductInfoById")
    public ProductInfo getProductInfoById(Integer productId) {
        return productService.getProductInfoById(productId);
    }
}
